package jp.co.sn.mml.pojo.tdksktmkk;


public class TdksktmkkId implements java.io.Serializable { 

	//受付日
	private Long ukeYmd;
	//検査番号
	private Long ksNo;
	//抗酸塗抹項目区分
	private String ksTmItemKbn;

	/** default constructor */
	public TdksktmkkId(){

	}

	/** full constructor */
	public TdksktmkkId(Long ukeYmd,Long ksNo,String ksTmItemKbn){
		this.ukeYmd = ukeYmd;
		this.ksNo = ksNo;
		this.ksTmItemKbn = ksTmItemKbn;
	}

	//Property accessors
	public Long getUkeYmd(){
		return this.ukeYmd;
	}

	public void setUkeYmd(Long ukeYmd){
		this.ukeYmd=ukeYmd;
	}

	public Long getKsNo(){
		return this.ksNo;
	}

	public void setKsNo(Long ksNo){
		this.ksNo=ksNo;
	}

	public String getKsTmItemKbn(){
		return this.ksTmItemKbn;
	}

	public void setKsTmItemKbn(String ksTmItemKbn){
		this.ksTmItemKbn=ksTmItemKbn;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TdksktmkkId))
			return false;

		TdksktmkkId castOther = (TdksktmkkId) other;

		return ((this.getUkeYmd() ==  castOther.getUkeYmd())
				||(this.getUkeYmd()!=null && castOther.getUkeYmd() !=null 
					&& castOther.getUkeYmd() !=null 
					&& this.getUkeYmd().equals(castOther.getUkeYmd())))
			&& ((this.getKsNo() ==  castOther.getKsNo())
				||(this.getKsNo()!=null && castOther.getKsNo() !=null 
					&& castOther.getKsNo() !=null 
					&& this.getKsNo().equals(castOther.getKsNo())))
			&& ((this.getKsTmItemKbn() ==  castOther.getKsTmItemKbn())
				||(this.getKsTmItemKbn()!=null && castOther.getKsTmItemKbn() !=null 
					&& castOther.getKsTmItemKbn() !=null 
					&& this.getKsTmItemKbn().equals(castOther.getKsTmItemKbn())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUkeYmd() == null ? 0 : this.getUkeYmd().hashCode());
		result = 37 * result
				+ (getKsNo() == null ? 0 : this.getKsNo().hashCode());
		result = 37 * result
				+ (getKsTmItemKbn() == null ? 0 : this.getKsTmItemKbn().hashCode());
		return result;
	}

}